﻿{template 'header',$module}
{if $action == 'payword'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Set a new password</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}"><span>2、Mail authentication</span></a></td>
</tr>
</table>
</div>
<form method="post" action="send.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> New payment password</td>
<td class="tr"><input type="password" size="20" name="password" id="password" autocomplete="off"/> <span id="dpassword" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Repeat the new payment password</td>
<td class="tr"><input type="password" size="20" name="cpassword" id="cpassword" autocomplete="off"/>&nbsp;<span id="dcpassword" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Verification code</td>
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
</tr>
<tr>
<td class="tl">Tips</td>
<td class="tr">Submitted, the system will send a verification email to{$_email}，Please complete the verification Receiving Mail</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('password').value.length > {$MOD[maxpassword]} || Dd('password').value.length < {$MOD[minpassword]}) {
		Dmsg('Passwords should be{$MOD[minpassword]}-{$MOD[maxpassword]}Character', 'password');
		return false;
	}
	if(Dd('password').value != Dd('cpassword').value) {
		Dmsg('The two passwords do not match', 'cpassword');
		return false;
	}
	if(!is_captcha(Dd('captcha').value)) {
		Dmsg('Please fill in the correct verification code', 'captcha');
		return false;
	}
	return true;
}
s('edit');
</script>
{elseif $action == 'email'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Set up a newEmail</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}"><span>2、Mail authentication</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab2"><a href="?action={$action}"><span>3、Successfully modified</span></a></td>
</tr>
</table>
</div>
<form method="post" action="send.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> Login Password</td>
<td class="tr f_red"><input type="password" size="30" name="password" id="password" autocomplete="off"/> <span id="dpassword" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> NewEmail</td>
<td class="tr"><input type="text" size="30" name="email" id="email"/> <span id="demail" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Verification code</td>
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
</tr>
<tr>
<td class="tl">Tips</td>
<td class="tr">Submitted, the system will send a verification message to the new Email address, incoming mail to complete the verification</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('password').value.length < 6) {
		Dmsg('Please fill in the login password', 'password');
		return false;
	}
	if(Dd('email').value.length < 7) {
		Dmsg('Please fill out a new Email Address', 'email');
		return false;
	}
	if(!is_captcha(Dd('captcha').value)) {
		Dmsg('Please fill in the correct verification code', 'captcha');
		return false;
	}
	return true;
}
s('edit');
</script>
{elseif $action == 'mobile'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Set up a new phone</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}&code=1"><span>2、Receive authentication code</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab2"><a href="?action={$action}"><span>3、Successfully modified</span></a></td>
</tr>
</table>
</div>

{if isset($code)}
<form method="post" action="send.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> Authentication code</td>
<td class="tr"><input type="text" size="10" name="auth" id="auth"/> <span id="dauth" class="f_red"></span> Please enter your authentication code received by SMS</td>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Retransmission" class="btn" onclick="Go('?action={$action}');"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('auth').value.length < 6) {
		Dmsg('Please fill out the authentication code', 'auth');
		return false;
	}
	return true;
}
Dd('Tab0').className = 'tab';
Dd('Tab1').className = 'tab_on';
s('edit');
</script>
{else}
<form method="post" action="send.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> New phone number</td>
<td class="tr"><input type="text" size="30" name="mobile" id="mobile" value=""/> <span id="dmobile" class="f_red"></span></td>
</tr>
{if $fee && $_sms<1}
<tr>
<td class="tl">Receive SMS charges</td>
<td class="tr"><span class="f_b f_red">{$fee}</span> {$DT[money_unit]}</td>
</tr>
<tr>
<td class="tl">Account Balance</td>
<td class="tr"><span class="f_b f_blue">{$_money}</span> {$DT[money_unit]} {if $fee>$_money}&nbsp;<span class="f_red">Insufficient balance</span>&nbsp;{/if} <a href="charge.php?action=pay" class="t" target="_blank">[Recharge]</a></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Payment password</td>
<td class="tr">{template 'password', 'chip'} <span id="dpassword" class="f_red"></span></td>
</tr>
{/if}
<tr>
<td class="tl">Tips</td>
<td class="tr">Submitted, the system will send a text message to your phone number, please pay attention to receive</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('mobile').value.length < 7) {
		Dmsg('Please fill in mobile number', 'mobile');
		return false;
	}
{if $fee && $_sms<1}
	if(Dd('password').value.length < 6) {
		Dmsg('Please fill out the payment password', 'password');
		return false;
	}
{/if}
	return true;
}
s('edit');
</script>
{/if}
{elseif $action == 'check'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Resend verification letter</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}"><span>2、Mail authentication</span></a></td>
</tr>
</table>
</div>
<form method="post" action="send.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> Username</td>
<td class="tr"><input type="username" name="username" id="username" value="{$_username}" style="width:140px"/> <span id="dusername" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Password</td>
<td class="tr">{template 'password', 'chip'} <span id="dpassword" class="f_red"></span></td>
</tr>
<tr>
<td class="tl">Email</td>
<td class="tr"><input type="text" size="30" name="email" id="email"/> <span id="demail" class="f_red"></span><br/>
<span class="f_gray">If you need to replace the register Email, please fill out; if not replaced, please leave blank</span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Verification code</td>
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
</tr>
<tr>
<td class="tl">Tips</td>
<td class="tr">Submitted, the system will send a verification email to your registered Email, please complete the verification receiving mail</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('username').value.length < 1) {
		Dmsg('Please fill in the user name', 'username');
		return false;
	}
	if(Dd('password').value.length < 6) {
		Dmsg('Please fill in the password', 'password');
		return false;
	}
	if(!is_captcha(Dd('captcha').value)) {
		Dmsg('Please fill in the correct verification code', 'captcha');
		return false;
	}
	return true;
}
</script>
{else}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Forgot Password</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}"><span>2、Mail authentication</span></a></td>
</tr>
</table>
</div>
<form method="post" action="send.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 
<select name="option">
	<option value="username">User name</option>
	{if $MOD['passport']}<option value="passport">Pass</option>{/if}
	<option value="mobile">Phone number</option>
	<option value="company">Company name</option>
	{if $DT[im_qq]}<option value="qq">QQ</option>{/if}
	{if $DT[im_msn]}<option value="msn">MSN</option>{/if}
	{if $DT[im_ali]}<option value="ali">Want</option>{/if}
	{if $DT[im_skype]}<option value="skype">Skype</option>{/if}
	<option value="userid">MemberID</option>
</select>	
</td>
<td class="tr"><input type="username" size="20" name="username" id="username"/> <span id="dusername" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Email</td>
<td class="tr"><input type="text" size="30" name="email" id="email"/> <span id="demail" class="f_red"></span> <span class="f_gray">Please fill in your registration, fillEmail</span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> New Password</td>
<td class="tr"><input type="password" size="20" name="password" id="password"/> <span id="dpassword" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Repeat new password</td>
<td class="tr"><input type="password" size="20" name="cpassword" id="cpassword"/>&nbsp;<span id="dcpassword" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Verification code</td>
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
</tr>
<tr>
<td class="tl">Tips</td>
<td class="tr">Submitted, the system will send a verification email to your registered Email, please complete the verification receiving mail</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('username').value.length < 1) {
		Dmsg('Please fill in a name', 'username');
		return false;
	}
	if(Dd('email').value.length < 7) {
		Dmsg('Please fill out the registration Email Address', 'email');
		return false;
	}
	if(Dd('password').value.length > {$MOD[maxpassword]} || Dd('password').value.length < {$MOD[minpassword]}) {
		Dmsg('Passwords should be{$MOD[minpassword]}-{$MOD[maxpassword]}Character', 'password');
		return false;
	}
	if(Dd('password').value != Dd('cpassword').value) {
		Dmsg('The two passwords do not match', 'cpassword');
		return false;
	}
	if(!is_captcha(Dd('captcha').value)) {
		Dmsg('Please fill in the correct verification code', 'captcha');
		return false;
	}
	return true;
}
</script>
{/if}
{template 'footer',$module}